<div class="tab-pane active">
    <div class="box box-info">
        <div class="box-header with-border">
        <div class="form-group delete-hint" style="display: none">
    <div class="box-title">今日日清列表</div>
</div>
<div class="box-body">
    <div>
        <form class="navbar-form navbar-left" role="search">

            <div class="form-group">
                <a ui-sref="dayclear-add" type="button" class="btn btn-success" ng-click="addTab()">新增</a>
            </div>
            <div class="form-group">
                <input type="text" class="form-control"  placeholder="工号" ng-model="dayclearWhere.jobnum" required>
            </div>
            <div class="form-group">
                <input type="text" class="form-control"  placeholder="起始"
                       ng-model="dayclearWhere.startDate" id="startDatetimepicker">
            </div>
            <div class="form-group">
                <input type="text" class="form-control"  placeholder="终止"
                       ng-model="dayclearWhere.endDate" id="endDatetimepicker" placeholder="终止">
            </div>
            <div class="form-group">
                <input class="btn btn-default" type="button" value="查询" ng-click="selectWhere(dayclearWhere)">
            </div>
        </form>

    <!--这里打开的是新页面-->
</div>
    <table class="table table-bordered">
        <thead>
        <tr>
            <th class="text-left">部门</th>
            <th class="text-left">姓名</th>
            <th class="text-left">星期</th>
            <th class="text-left">日期</th>
            <th class="text-left">事件任务</th>
            <th class="text-left">日清结果</th>
            <th class="text-left">未达成率</th>
            <th class="text-left">备注</th>
            <th class="text-left">周汇总率</th>
            <th class="text-left">操作</th>
        </tr>
        <tr ng-repeat="item in list">
            <td>{{item.employee.depart.name}}</td>
            <td>{{item.employee.name}}</td>
            <td ng-if="item.temp=='1'">星期一</td>
            <td ng-if="item.temp=='2'">星期二</td>
            <td ng-if="item.temp=='3'">星期三</td>
            <td ng-if="item.temp=='4'">星期四</td>
            <td ng-if="item.temp=='5'">星期五</td>
            <td ng-if="item.temp=='6'">星期六</td>
            <td ng-if="item.temp=='0'">星期日</td>
            <td>{{item.date}}</td>
            <td style="white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">{{item.task}}</td>
            <td ng-if="item.result=='0'">处理中</td>
            <td ng-if="item.result=='1'">已完成</td>
            <td>{{item.incomplete_rate}}</td>
            <td>{{item.remark}}</td>
            <td>{{item.week_rate}}</td>
            <td>
                <div class="form-group">
                    <div>
                        <button ng-click="openDayclearDataModal(item.employee.jobnum)" class="btn btn-info" title="查询该员工本月记录"><span class="am-icon-search"></span>统计 </button>
                        <button ng-click="selectDayclear(item.employee.jobnum)" class="btn btn-info" type="submit">查看详情</button>
                        <button ng-click="delete(item.id)" class="btn btn-info">删除</button>
                    </div>
                </div>
            </td>
        </tr>
        </thead>
    </table>
</div>


<!--分页页码-->
<div class="box-footer no-border" ng-show="listShow">
    <pagination-component total-items="dayclearList.totalCounts"
                          current-page="dayclearList.pageIndex"
                          page-size="dayclearList.pageSize"
                          select-page="NextListData(pageIndex)">
    </pagination-component>
</div>

        <div class="box-footer no-border" ng-show="listByWhereShow">
            <pagination-component total-items="dayclearList.totalCounts"
                                  current-page="dayclearList.pageIndex"
                                  page-size="dayclearList.pageSize"
                                  select-page="NextListData(pageIndex)">
            </pagination-component>
        </div>
    </div>
</div>




